
<template>
  <div>
    <template v-if="type === 'textarea'">
      <textarea></textarea>
    </template>
    <input :type="type">
  </div>
</template>
<script lang = "ts">
import Vue from 'vue'
import Component from 'vue-class-component'
@Component({
  props: {
    type: { type: String, default: 'text' }
  }
})
export default class Cart extends Vue {}
</script>
<style scoped>
</style>
